package indi.cyh.model;

import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.JSONWriter;
import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @ClassName Response
 * @Description TODO
 * @Author CYH
 * @Date 2023/2/6 10:45
 */
@Schema(description = "接口返回数据集合")
public class Response<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    public static final String ok = "0";
    public static final String failed = "-1";
    @Setter
    @Getter
    @Schema(description = "状态码:0正常、-1失败")
    private String status = "0";
    @Setter
    @Getter
    @Schema(description = "接口提示信息")
    private String message = "调用成功!";
    @Schema(description = "接口返回数据")
    @Setter
    @Getter
    private T result = null;
}
